package com.hu.controller;


import com.hu.annotation.HotKeyCacheable;
import com.jd.platform.hotkey.client.callback.JdHotKeyStore;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@EnableCaching
@RestController
public class HotKeyController {


    @GetMapping("getCacheValue/{id}")
    @HotKeyCacheable(key = "#id")
    public String getCacheValue(@PathVariable("id") String id) {
        return "something information from db~~~" + id;
    }
}
